#include <tinyxml.h>
Inheritance diagram for TiPullXmlNode:


Public Types | |
| enum | NodeType { DOCUMENT, ELEMENT, COMMENT, UNKNOWN, TEXT, DECLARATION, TYPECOUNT } |
Public Member Functions | |
| virtual | ~TiPullXmlNode () |
| const char * | Value () const |
| void | SetValue (const char *val) |
| TiPullXmlNode * | LinkActiveChild (TiPullXmlNode *node) |
| TiPullXmlNode * | Parent () const |
| One step up the DOM. | |
| TiPullXmlNode * | FirstChild () |
| The first child of this node with the matching 'value'. Will be null if none found. | |
| TiPullXmlNode * | FirstChild (const char *value, NodeType _type) |
| The first child of this node with the matching 'value'. Will be null if none found. | |
| TiPullXmlNode * | NextSibling () |
| TiPullXmlNode * | NextSibling (const char *_value, NodeType _type) |
| Navigate to a sibling node with the given 'value'. | |
| TiPullXmlElement * | NextSiblingElement () |
| TiPullXmlElement * | NextSiblingElement (const char *_value) |
| TiPullXmlElement * | FirstChildElement () |
| Convenience function to get through elements. | |
| TiPullXmlElement * | FirstChildElement (const char *_value) |
| Convenience function to get through elements. | |
| virtual NodeType | Type () const |
| bool | hasChildren () const |
| TiPullXmlDocument * | GetDocument () const |
| TiPullXmlDocument * | ToDocument () const |
| Cast to a more defined type. Will return null not of the requested type. | |
| TiPullXmlElement * | ToElement () const |
| Cast to a more defined type. Will return null not of the requested type. | |
| TiPullXmlComment * | ToComment () const |
| Cast to a more defined type. Will return null not of the requested type. | |
| TiPullXmlUnknown * | ToUnknown () const |
| Cast to a more defined type. Will return null not of the requested type. | |
| TiPullXmlText * | ToText () const |
| Cast to a more defined type. Will return null not of the requested type. | |
| TiPullXmlDeclaration * | ToDeclaration () const |
| Cast to a more defined type. Will return null not of the requested type. | |
| int | Row () const |
| int | Column () const |
Protected Member Functions | |
| TiPullXmlNode (NodeType type) | |
| TiPullXmlNode * | Identify (const char *start) const |
| bool | FindElementClose (ParsePosition in, const char *&out) |
| TiXmlString | SValue () const |
Protected Attributes | |
| TiPullXmlNode * | parent |
| TiPullXmlNode * | activeChild |
| NodeType const | type |
| TiPullXmlCursor | endPosOpen |
| TiPullXmlCursor | endPosClose |
| TiXmlString | value |
Friends | |
| class | TiPullXmlDocument |
| class | TiPullXmlElement |
| TiXmlOutStream & | operator<< (TiXmlOutStream &out, const TiPullXmlNode &base) |
|
|
The types of XML nodes supported by TinyXml. (All the unsupported types are picked up by UNKNOWN.) |
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
|
|
||||||||||||
|
The first child of this node with the matching 'value'. Will be null if none found.
|
|
|
The first child of this node with the matching 'value'. Will be null if none found.
|
|
|
Convenience function to get through elements.
|
|
|
Convenience function to get through elements.
|
|
|
Return a pointer to the Document this node lives in. Returns null if not in a document. |
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
Navigate to a sibling node with the given 'value'.
|
|
|
|
|
|
|
|
|
Convenience function to get through elements. Calls NextSibling and ToElement. Will skip all non-Element nodes. Returns 0 if there is not another element. |
|
|
One step up the DOM.
|
|
|
Return the position, in the original source file, of this node or attribute. The row and column are 1-based. (That is the first row and first column is 1,1). If the returns values are 0 or less, then the parser does not have a row and column value. Generally, the row and column value will be set when the TiXmlDocument::Load(), TiXmlDocument::LoadFile(), or any TiXmlNode::Parse() is called. It will NOT be set when the DOM was created from operator>>. The values reflect the initial load. Once the DOM is modified programmatically (by adding or changing nodes and attributes) the new values will NOT update to reflect changes in the document. There is a minor performance cost to computing the row and column. Computation can be disabled if TiXmlDocument::SetTabSize() is called with 0 as the value.
|
|
|
|
|
|
|
|
|
Cast to a more defined type. Will return null not of the requested type.
|
|
|
Cast to a more defined type. Will return null not of the requested type.
|
|
|
Cast to a more defined type. Will return null not of the requested type.
|
|
|
Cast to a more defined type. Will return null not of the requested type.
|
|
|
Cast to a more defined type. Will return null not of the requested type.
|
|
|
Cast to a more defined type. Will return null not of the requested type.
|
|
|
Query the type (as an enumerated value, above) of this node. The possible types are: DOCUMENT, ELEMENT, COMMENT, UNKNOWN, TEXT, and DECLARATION. |
|
|
The meaning of 'value' changes for the specific type of TiPullXmlNode. Document: filename of the xml file Element: name of the element Comment: the comment text Unknown: the tag contents Text: the text string The subclasses will wrap this function. |
|
||||||||||||
|
|
|
|
Reimplemented from TiPullXmlBase. |
|
|
Reimplemented from TiPullXmlBase. Reimplemented in TiPullXmlText. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.3-rc3